Repository navigation
fix(rtc): parse ISO text in sceRtcParseDateTime by the RFC 3339 rules - #1398
adriadam10 merged 2 commits into
Conversation
Measured on a PS5 (firmware 13.60) through dlopen of libSceRtc.sprx: an empty fraction is accepted, any digits past the sixth are dropped, text after the zone is ignored, the offset is applied without a range check, and a 60th second returns 0 with the tick only shifted by the offset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a PS5 (firmware 13.60) every input that starts with a digit gets the same result and tick from sceRtcParseDateTime as from sceRtcParseRFC3339, except that leading spaces and tabs are skipped first. A string without a zone, or with a space instead of T, is a parse error rather than UTC. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
About the overlap report: #1253, #1306 and #1314 are not dependencies. Each of them inserts a TechnicalDebt line right after |
boykopovar#1398 and boykopovar#1399 both rewrite the sceRtcParseDateTime entry that the s_sethalt entry followed. It now follows the libSceAudio3d entries, which no open pull request edits, so either can merge first without a conflict. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
boykopovar#1398 and boykopovar#1399 both rewrite the sceRtcParseDateTime entry that the s_sethalt entry followed. It now follows the libSceAudio3d entries, which no open pull request edits, so either can merge first without a conflict. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Checked the new |
What
Stacked on #1397: this branch also carries that PR's commit, and only the last commit is new here. The PS5 measurements and the probe source are in the comments on #1397.
I measured this on a PS5 (firmware 13.60) with the same
dlopenprobe as #1397.sceRtcParseDateTimeandsceRtcParseRFC3339give the same return code and output tick for every input that starts with a digit. The one difference is thatsceRtcParseDateTimeskips leading spaces and tabs first, and nothing else:\n,\r,\v,\fand\xa0are BAD_PARSE. So the ISO branch now skips spaces and tabs and then calls the RFC 3339 parser.What changes for
sceRtcParseDateTimeonmain:main2024-02-29T12:34:56.789(no zone)2024-02-29 12:34:56(space separator)2024-02-29 12:34:56Z\t 2024-02-29T12:34:56Z2024-02-29T12:34:56Zjunk,...+99:99sceRtcParseRFC3339)2024-02-29,2024/02/29T12:34:56Z,...56.The TechnicalDebt entry from #516 assumed the space separator and the zone-less form. It now says that this branch follows the measured RFC 3339 rules. The RFC 2822 / asctime part is left as is: the next PR handles it.
Title evidence, stated plainly: the only evidence for this function is #516's statement that The Last of Us Part I needs
sceRtcParseDateTime. #516 was merged on that statement alone, with no title ID and no log line. The Propagation: Paradise Hotel dump (PPSA15878) that backs #1397 does not use this function, onlysceRtcParseRFC3339. The "title ID and the log line where it stops on main" bar was set for new library functions, and this PR corrects one that is already merged. It may still apply, so I'm flagging it here.Tested
sceRtcParseDateTimeinputs that start with a digit after leading spaces and tabs give the same return code and tick on this branch as on the console. Non-ISO text still throws here, as onmain.libs, full CTest 408/408.libs, CTest 0 failed of 404 (GPU execution tests skipped, the VM has no GPU).guest_rtcfail.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code